package tech.veedo.munchkin.beans.backend;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tech.veedo.munchkin.beans.basic.Base;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "实体工作流节点", description = "实体工作流MAPPING下的各个审核节点")
@Data
@Accessors(chain = true)
@TableName("MUNC_NODE")
public class Node extends Base<Node> {

    @ApiModelProperty("版本号")
    @Version
    private Long version;

    @ApiModelProperty("节点名称")
    private String name;

    @ApiModelProperty("所属工作流标识")
    @TableField("mapping_id")
    private Long mappingID;

    @ApiModelProperty("是否全通过节点")
    @TableField("all_checked")
    private boolean allchecked;

    @ApiModelProperty("节点序号，正常最小为1，0为提交审批节点")
    private Integer sort;

    @ApiModelProperty("节点审核人列表")
    private transient List<Auditor> auditors;

}
